<?php
/**
 * 获取用户是否已经是第一次看引导动画了
 */
require_once dirname(__DIR__)."/login_filter.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\model\Users;
//用户uuid
$uuid=$Auth['uuid'];
//实例化redis
$redis = SysResource::getRedis();
$uid=sprintf("%d",crc32($uuid));
$key=REDIS_PREFIX."get_user_cece".$uid;
$res=$redis->get($key);
if(empty($res)) {
    $time=date("Y-m-d H:i:s",time());
    $redis->setex($key, 86400 * 65,$time);
    Response::output(0,"查询成功",2);
}else{
    Response::output(0,"查询成功",1);
}